﻿using System;

namespace Middleware.Performance
{
    [Serializable]
    public class PerformanceStub : StubBase, IPerformance
    {
        public PerformanceStub(RemoteObject remoteObject)
            : base(remoteObject) {
        }

        #region IPerformance Members

        public void MethodVoid() {
            base.Execute("MethodVoid", false, new object[] { });
        }

        public void MethodByte(byte p) {
            base.Execute("MethodByte", false, new object[] { p });
        }

        public void MethodShort(short p) {
            base.Execute("MethodShort", false, new object[] { p });
        }

        public void MethodInt(int p) {
            base.Execute("MethodInt", false, new object[] { p });
        }

        public void MethodChar(char p) {
            base.Execute("MethodChar", false, new object[] { p });
        }

        public void MethodString(string p) {
            base.Execute("MethodString", false, new object[] { p });
        }

        public void MethodIntArray(int[] p) {
            base.Execute("MethodIntArray", false, new object[] { p });
        }

        #endregion
    }
}
